﻿using System;

namespace Dentiste.Domain.Factories
{
    public class Factory<T>
    {
        public T Create()
        {
            string className = "Dentiste.Domain.Entities."+typeof(T).Name.Substring(1);
            return (T) System.Reflection.Assembly.GetExecutingAssembly().CreateInstance(className);
        }
    }
}